<%@ page import="org.lanqiao.entity.Login" %>
<%@ page import="org.lanqiao.dao.LoginDao" %>
<%@ page import="java.lang.System" %>

<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/10/14
  Time: 上午8:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
     <%
         String name= request.getParameter("uname");
         String pwd=request.getParameter("upwd");
         Login login=new Login(name,pwd);
         LoginDao dao=new LoginDao();
         int result=dao.login(login);
         if(result>0){
             System.out.print("登陆成功");

         }else if(result==0){
           out.print("用户名或密码错误");
         }else {
          out.print("系统异常");
         }
     %>

</body>
</html>
